local extension = Package:new("new_heg_jyzs")
extension.extensionName = "new_heg"

extension.game_modes_whitelist = {"zhonger_heg_mode","warlords_heg_mode","jin_heg_mode", "tang_heg_mode"}

extension:loadSkillSkelsByPath("./packages/new_heg/pkg/jyzs/skills")

local H = require "packages.ol_hegemony.util"

Fk:loadTranslationTable{
    ["new_heg_jyzs"] = "<font color='purple'>金印紫授</font>",
    ["jy_heg"] = "金印紫授",
}

General:new(extension, "jy_heg__zhanghuyuechen", "jinh", 4):addSkills { "ld__xijue", "ld__lvxian", "ld__yingwei" }
Fk:loadTranslationTable{
  ["jy_heg__zhanghuyuechen"] = "张虎乐綝",
  ["#jy_heg__zhanghuyuechen"] = "文成武德",
  ["illustrator:jy_heg__zhanghuyuechen"] = "凝聚永恒",

  ["~jy_heg__zhanghuyuechen"] = "儿有辱……父亲威名……",
}

General:new(extension, "jy_heg__wenyang", "jinh", 5):addSkills { "ld__duanqiu" }
Fk:loadTranslationTable{
  ["jy_heg__wenyang"] = "文鸯",
  ["#jy_heg__wenyang"] = "勇冠三军",
  ["illustrator:sm_heg__wenyang"] = "小罗没想好",

  ["~jy_heg__wenyang"] = "欲加之罪，何患吾辞？",
}

 General:new(extension, "jy_heg__yanghuz", "jinh", 4):addSkills { "ld__huaiyuan", "ld__fushou" }
 Fk:loadTranslationTable{
  ["jy_heg__yanghuz"] = "羊祜",
  ["#jy_heg__yanghuz"] = "静水沧笙",
  ["illustrator:jy_heg__yanghuz"] = "白",

  ["~jy_heg__yanghuz"] = "当断不断，反受其乱……",
}

General:new(extension, "jy_heg__yangjun", "jinh", 4):addSkills { "ld__neiji" }
Fk:loadTranslationTable{
  ["jy_heg__yangjun"] = "杨骏",
  ["#jy_heg__yangjun"] = "阶缘佞宠",
  ["illustrator:jy_heg__yangjun"] = "荆芥",

  ["~jy_heg__yangjun"] = "阉人造反啦！护卫！呀——",
}

local baifuren = General:new(extension, "jy_heg__baifuren", "jinh", 3, 3, General.Female)
baifuren:addSkills { "ld__xiace", "ld__limeng" }
baifuren:addCompanions("jin_heg__simayiz")
Fk:loadTranslationTable{
  ["jy_heg__baifuren"] = "柏夫人",
  ["#jy_heg__baifuren"] = "玲珑心窍",
  ["illustrator:jy_heg__baifuren"] = "君桓文化",

  ["~jy_heg__baifuren"] = "世人皆惧司马，独我痴情仲达……",
}

General:new(extension, "jy_heg__wangxiang", "jinh", 3):addSkills { "ld__bingxin" }
Fk:loadTranslationTable{
  ["jy_heg__wangxiang"] = "王祥",
  ["#jy_heg__wangxiang"] = "沂川跃鲤",
  ["illustrator:jy_heg__wangxiang"] = "KY",

  ["~jy_heg__wangxiang"] = "夫生之有死，自然之理也。",
}

local sunxiu = General:new(extension, "jy_heg__sunxiu", "jinh", 3)
sunxiu:addSkills { "ld__xiejian", "ld__yinsha" }
sunxiu:addCompanions("jin_heg__simalun")
Fk:loadTranslationTable{
  ["jy_heg__sunxiu"] = "孙秀",
  ["#jy_heg__sunxiu"] = "黄钟毁弃",
  ["illustrator:jy_heg__sunxiu"] = "荆芥",

  ["~jy_heg__sunxiu"] = "吾满手杀孽，早知会有此劫。",
}

local duyu = General:new(extension, "jy_heg__duyu", "jinh", 4)
duyu.mainMaxHpAdjustedValue = -1
duyu:addCompanions("jy_heg__yanghuz")
duyu:addSkills{ "ld__sanchen", "ld__pozhu" }
Fk:loadTranslationTable{
  ["jy_heg__duyu"] = "杜预",
  ["#jy_heg__duyu"] = "文成武德",
  ["illustrator:jy_heg__duyu"] = "君桓文化",

  ["~jy_heg__duyu"] = "金瓯尚缺，死难瞑目……",
}

local lordsimayi = General:new(extension, "jy_heg__lordsimayi", "jinh", 4)
lordsimayi.hidden = true
H.lordGenerals["jin_heg__simayiz"] = "jy_heg__lordsimayi"
lordsimayi:addSkills { "ld__guikuang","ld__jiaping", "ld__shujuan"  }
lordsimayi:addRelatedSkills{ "new_ld__fengying","ld__jianglue","yongjin","hs__luanwu","jin_heg__shunfu" }
Fk:loadTranslationTable{
  ["jy_heg__lordsimayi"] = "君司马懿",
  ["#jy_heg__lordsimayi"] = "狼顾九州",
  ["illustrator:jy_heg__lordsimayi"] = "凡果",

  ["$jin_heg__shunfu_jy_heg__lordsimayi"] = "天地造化，不过老夫一念之间！",
  ["$new_ld__fengying_jy_heg__lordsimayi"] = "臣当总领西事，不负陛下所托。",
  ["$ld__jianglue_jy_heg__lordsimayi"] = "能战当战，不能战，当死耳！",
  ["$yongjin_jy_heg__lordsimayi"] = "连下诸城以筑京观，足永平辽东之患！",
  ["$hs__luanwu_jy_heg__lordsimayi"] = "连诛其族，翦其党羽，以夷后患！",

  ["~jy_heg__lordsimayi"] = "洛水滔滔，难诉吾一生坎坷......",
}

return extension